﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="true" 
     CodeFile="ViewProduto.aspx.cs" Inherits="_Default"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    
    <h1>
        Confira as Ofertas da Sport Store!<asp:DetailsView ID="DetailsView1" 
            runat="server" AutoGenerateRows="False" DataKeyNames="id" 
            DataSourceID="SqlDataSource1" Height="50px" Width="125px" GridLines="None">
            <Fields>
                <asp:ImageField DataImageUrlField="imagem">
                </asp:ImageField>
                <asp:BoundField DataField="nome" SortExpression="nome" />
                <asp:BoundField DataField="descricao" SortExpression="descricao" />
            </Fields>
        </asp:DetailsView>
    </h1>
<p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [id], [nome], [descricao], [imagem] FROM [produto] WHERE ([id] = @id)

">
            <SelectParameters>
                <asp:QueryStringParameter Name="id" QueryStringField="id" />
            </SelectParameters>
        </asp:SqlDataSource>
</p>
   
    
</asp:Content>

